-- GENERATED SPELL FOR [Coilfang Ray] --


function spell0_21128(pUnit, Event) --@Psychic Horror,n/a--
pUnit:FullCastSpellOnTarget(34984,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21128', 4500, 1)
end

function Sorts_21128(pUnit, Event)
local choix_sorts_21128 = math.random(0, 0)
if choix_sorts_21128 == 0 then
pUnit:RegisterEvent('spell0_21128', 1, 1)
end
end

function mob21128_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21128', math.random(1500, 3000), 1)
end

function mob21128_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21128_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21128_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21128, 1, 'mob21128_Action')
RegisterUnitEvent(21128, 2, 'mob21128_Leave')
RegisterUnitEvent(21128, 3, 'mob21128_Kill')
RegisterUnitEvent(21128, 4, 'mob21128_Die')
